﻿@namespace BlazorComponent
@typeparam TValue
@typeparam TInput
@inherits ComponentPartBase<TInput>

@if (AppendContent != null || AppendIcon != null)
{
    var childContent = (RenderFragment?)null;

    if (AppendContent != null)
    {
        childContent = AppendContent;
    }
    else if (AppendIcon != null)
    {
        childContent = RenderPart(typeof(BInputIcon<,>),
            "append-icon", AppendIcon, HandleOnAppendClickAsync, AppendInnerReferenceCapture,
            arg0Name: "Type", arg1Name: "Icon", arg2Name: "OnClick", "ReferenceCapture");
    }

    @RenderPart(typeof(BInputSlot<,>),
        "append", "inner", childContent,
        arg0Name: "Type", "Location")
}
